<?php

namespace App\Http\Controllers;

use PhpAmqpLib\Connection\AMQPStreamConnection;
use PhpAmqpLib\Message\AMQPMessage;
use PhpAmqpLib\Wire\AMQPTable;
use Spatie\Permission\Models\Permission;
use Spatie\Permission\Models\Role;
use Illuminate\Support\Facades\DB;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redis;

class UserController extends Controller
{
    public function index()
    {
        echo  $pass=password_hash('1234567', PASSWORD_BCRYPT);
        exit;
        $users = DB::select('select * from users where id = ?', [1]);
        return json_encode(['good'=>$pass,'age'=>$users]);
    }
}
